package com.xirui.bean;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

public class Roll {
	
	
	private Integer id;
	private Integer code;
	private String rname;
	private Integer comid;
	private Integer busid;
	private Integer deptid;
	private BigDecimal account;
	private String bills;
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date cretime;
	
	private String comName;
	private String busName;
	private String deptName;
	
	private List<Paymaster> paymasters;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public Integer getComid() {
		return comid;
	}

	public void setComid(Integer comid) {
		this.comid = comid;
	}

	public Integer getBusid() {
		return busid;
	}

	public void setBusid(Integer busid) {
		this.busid = busid;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public BigDecimal getAccount() {
		return account;
	}

	public void setAccount(BigDecimal account) {
		this.account = account;
	}

	public String getBills() {
		return bills;
	}

	public void setBills(String bills) {
		this.bills = bills;
	}

	public Date getCretime() {
		return cretime;
	}

	public void setCretime(Date cretime) {
		this.cretime = cretime;
	}

	public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public String getBusName() {
		return busName;
	}

	public void setBusName(String busName) {
		this.busName = busName;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public List<Paymaster> getPaymasters() {
		return paymasters;
	}

	public void setPaymasters(List<Paymaster> paymasters) {
		this.paymasters = paymasters;
	}

	@Override
	public String toString() {
		return "Roll [id=" + id + ", code=" + code + ", rname=" + rname + ", comid=" + comid + ", busid=" + busid
				+ ", deptid=" + deptid + ", account=" + account + ", bills=" + bills + ", cretime=" + cretime
				+ ", comName=" + comName + ", busName=" + busName + ", deptName=" + deptName + ", paymasters="
				+ paymasters + "]";
	}

	

	
	

	
	
	
	

}
